//
//  HyScrollViewModel.m
//  BaiSiBuDeJie
//
//  Created by uproject on 16/8/29.
//  Copyright © 2016年 tsaievan. All rights reserved.
//

#import "HyScrollViewModel.h"

@implementation HyScrollViewModel
+ (NSArray *)modelWithPlistName:(NSString *)name{
    NSString *path = [[NSBundle mainBundle]pathForResource:name ofType:nil];
    NSArray *arr = [NSArray arrayWithContentsOfFile:path];
    NSMutableArray *mtArr = [NSMutableArray array];
    for (NSDictionary *dic in arr) {
        HyScrollViewModel *model =  [[HyScrollViewModel alloc]initWithDictionary:dic error:nil];
        [mtArr addObject:model];
    }
    return mtArr.copy;
}
@end
